home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir38 / vga_doc2.zip / CGA.TXT < prev    next >
Text File  |  1993-01-22  |  1KB  |  44 lines

  1. IBM Color Graphics Adapter
  2.  
  3.   3D8h (W): Mode Control register
  4.     bit 0  80x25 Alpha mode if set, 40x25 else
  5.     1  Graphics mode if set, alpha else.
  6.     2  BW mode if set, color else
  7.     3  Enable video signal if set
  8.     4  640x200 Graphics mode if set, 320x200 else
  9.     5  if set bit 7 of the attribute controls background, else blink
  10.  
  11.   3D9h (W): Color Select register
  12.        The function of this register depends on the active mode. 
  13.        Text modes:      320x200 modes:         640x200 mode:
  14.     0  Blue border      Blue background        Blue foreground
  15.     1  Green border     Green background       Green foreground
  16.     2  Red border       Red background         Red foreground
  17.     3  Bright border    Bright background      Bright foreground
  18.     4  Backgr. color    Alt. intens. colors
  19.     5  No func.         Selects palette 
  20.  
  21.        Palette 0 is Green, red and brown, 
  22.        palette 1 is Cyan, magenta and white.
  23.  
  24.   3DAh (R): Status register 
  25.     bit 0  If set retrace active and the video memory may be
  26.        accessed by the PC.
  27.     1  Lightpen trigger has occurred if set
  28.     2  Lightpen switch is off if set  
  29.     3  Vertical retrace active if set.
  30.        Video RAM can be accessed for the next 1.25 ms.
  31.  
  32.  
  33.  
  34.  
  35.   Video Modes:
  36.  
  37.   00h T   40  25  2   (8x8)
  38.   01h T   40  25  2   (8x8)
  39.   02h T   80  25  16  (8x8)
  40.   03h T   80  25  16  (8x8)
  41.   04h G  320 200  4
  42.   05h G  320 200  4
  43.   06h G  640 200  2
  44.